package com.shanjupay.merchant.feign;

import com.shanjupay.service.api.dto.MerchantDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * TODO
 *
 * @Description
 * @Author zhangbing
 * @Date 2024/5/8 9:21
 **/
@FeignClient("merchant-service2104")
public interface MerchantFeign {

    //根据id查询
    @GetMapping("/{id}")
    public MerchantDTO findById(@PathVariable("id") Long id);

    //商户注册
    @PostMapping("/register")
    MerchantDTO createMerchant(@RequestBody MerchantDTO merchantDTO);

    //资质申请
    @PostMapping("/applyMerchant")
    public void applyMerchant(@RequestBody MerchantDTO merchantDTO);

}
